<template>
  <div class="wrap">
    <add-button v-on:listenEvent="showForm"></add-button>
    <res-table ref="myform"></res-table>
  </div>
</template>

<script>
import AddButton from "./AddButton.vue";
import ResTable from "./ResTable";

export default {
  components: {
    AddButton,
    ResTable
  },
  data() {
    return {};
  },
  methods: {
    showForm(index){
      if(index==6){
      this.$refs.myform.getuser();
      }
    }
  }
};
</script>

<style scoped>
.wrap {
  width: 80vw;
  height: 80vh;
  margin: 5vh auto 0;
  background: #fff;
}
</style>
